import BaseApi from "../base.api";

export class PatrolApi extends BaseApi {
    protected baseUri = "/backend/workshop/patrols";

    queryByInstanceId(instanceId: any, type: string) {
        return this.request.get(`${this.baseUri}/${instanceId}?type=${type}`);
    }

    save(data?: any) {
        return this.request.post(`${this.baseUri}`, data);
    }
}
